﻿@{
    ViewBag.Title = "Noticemod";
}
@section header{

}
<form id="form1">
    <div class="form-layout">
        <input type="hidden" name="ID" value="" />
        <table class="form">
            <!-- id[]int -->
            <input type="hidden" id="id" name="id" value="" />
            <tr>
                <th class="formTitle">公告编号</th>
                <td class="formValue">
                    <input id="Notice_code" name="Notice_code" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">公告标题</th>
                <td class="formValue">
                    <input id="Notice_Title" name="Notice_Title" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">公告内容</th>
                <td class="formValue">
                    <input id="Notice_Content" name="Notice_Content" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">公告类型</th>
                <td class="formValue">
                    <input id="Notice_type" name="Notice_type" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">接收机构</th>
                <td class="formValue">
                    <input id="Institution" name="Institution" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">发布时间</th>
                <td class="formValue">
                    <input id="Notice_Rel" name="Notice_Rel" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">截止时间</th>
                <td class="formValue">
                    <input id="Notice_End" name="Notice_End" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">附件材料</th>
                <td class="formValue">
                    <input id="Annex_material" name="Annex_material" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle"></th>
                <td class="formValue">
                    <input id="usercode" name="usercode" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">创建人</th>
                <td class="formValue">
                    <input id="Notice_Founder" name="Notice_Founder" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">创建时间</th>
                <td class="formValue">
                    <input id="Add_time" name="Add_time" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">审批状态</th>
                <td class="formValue">
                    <input id="Notice_state" name="Notice_state" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">已阅人员</th>
                <td class="formValue">
                    <input id="Readers_people" name="Readers_people" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">未读人员</th>
                <td class="formValue">
                    <input id="Unread_people" name="Unread_people" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">部门名称</th>
                <td class="formValue">
                    <input id="Notice_department" name="Notice_department" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">部门number</th>
                <td class="formValue">
                    <input id="Notice_departmentCode" name="Notice_departmentCode" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">角色名称</th>
                <td class="formValue">
                    <input id="Notice_role" name="Notice_role" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">角色number</th>
                <td class="formValue">
                    <input id="Notice_roleCode" name="Notice_roleCode" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">学生姓名</th>
                <td class="formValue">
                    <input id="Notice_user" name="Notice_user" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">学生number</th>
                <td class="formValue">
                    <input id="Notice_userCode" name="Notice_userCode" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">花名册人员</th>
                <td class="formValue">
                    <input id="Notice_worker" name="Notice_worker" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">花名册code</th>
                <td class="formValue">
                    <input id="Notice_workerCode" name="Notice_workerCode" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">指定类别</th>
                <td class="formValue">
                    <input id="Notice_Choice" name="Notice_Choice" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">启用状态</th>
                <td class="formValue">
                    <input id="Notice_currytype" name="Notice_currytype" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle"></th>
                <td class="formValue">
                    <input id="Notice_bilcode" name="Notice_bilcode" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle"></th>
                <td class="formValue">
                    <input id="Notice_llcs" name="Notice_llcs" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

        </table>
    </div>
</form>

@section scripts{
    <script>
        var baseUrl = "/Noticemod/";
        var keyValue = $.request("keyValue");
        $(function () {
            initControl();
            if (!!keyValue) {
                $.ajax({
                    url: baseUrl + "GetFormJson",
                    data: { keyValue: keyValue },
                    dataType: "json",
                    async: false,
                    success: function (data) {
                        $("#form1").formSerialize(data);
                    }
                });
            }
        });
        function initControl() {

        }
        function submitForm() {
            if (!$('#form1').formValid()) {
                return false;
            }
            $.submitForm({
                url: baseUrl + "SubmitForm?keyValue=" + keyValue,
                param: $("#form1").formSerialize(),
                success: function () {
                    $.currentWindow().$("#gridList").resetSelection();
                    $.currentWindow().$("#gridList").trigger("reloadGrid");
                }
            })
        }
    </script>
}